package com.example.iceman.stepcounterapp;

import android.app.Application;

import com.facebook.stetho.Stetho;
import com.raizlabs.android.dbflow.config.FlowManager;

/**
 * Created by iceman on 15/6/22.
 */
public class BaseApplication extends Application {
    public static BaseApplication mApplication;

    @Override
    public void onCreate() {
        super.onCreate();
        mApplication = this;
        Stetho.initialize(Stetho.newInitializerBuilder(this)
                .enableDumpapp(
                        Stetho.defaultDumperPluginsProvider(this))
                .enableWebKitInspector(
                        Stetho.defaultInspectorModulesProvider(this))
                .build());
        FlowManager.init(this);

    }

    public static BaseApplication getAppContext() {
        return mApplication;
    }
}
